package com.capgemini.poste.dao;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the user database table.
 * 
 */
@Entity
@Table(name="user")
public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private UserPK id;

	@Column(name="lb_nom")
	private String lbNom;

	@Column(name="nb_localisation")
	private String nbLocalisation;

	public User() {
	}

	public UserPK getId() {
		return this.id;
	}

	public void setId(UserPK id) {
		this.id = id;
	}

	public String getLbNom() {
		return this.lbNom;
	}

	public void setLbNom(String lbNom) {
		this.lbNom = lbNom;
	}

	public String getNbLocalisation() {
		return this.nbLocalisation;
	}

	public void setNbLocalisation(String nbLocalisation) {
		this.nbLocalisation = nbLocalisation;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((lbNom == null) ? 0 : lbNom.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (lbNom == null) {
			if (other.lbNom != null)
				return false;
		} else if (!lbNom.equals(other.lbNom))
			return false;
		return true;
	}

}